#ifndef MYSETTINGS_H
#define MYSETTINGS_H

#include <QSettings>

class mySettings
{
public:
    static QStringList getRules()
    {
        QStringList retList;
        QSettings settings("Affinity-Tools", "USBDriveFresher");
        settings.beginGroup( "Rules" );
            retList = settings.value("rulesStr", "" ).toString().split( ';', QString::SkipEmptyParts );
        settings.endGroup();
        return retList;
    }

    static bool getSilentRunMode()
    {
        QSettings settings("Affinity-Tools", "USBDriveFresher");
        return settings.value( "RunHidden", false ).toBool();
    }

    static bool autoCleanup()
    {
        QSettings settings("Affinity-Tools", "USBDriveFresher");
        return settings.value( "AutoCleanup", false ).toBool();
    }

    static bool silentAutoCleanup()
    {
        QSettings settings("Affinity-Tools", "USBDriveFresher");
        return settings.value( "SilentAutoCleanup", false ).toBool();
    }
};

#endif // MYSETTINGS_H
